﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;


namespace Checkers2
{
    class Pawns : IDisposable
    {
        public int X = new int();
        public int Y = new int();
        public Label Model = new Label();
        public bool IsWhite = new bool();
        public bool IsSelected = new bool();

        public void Move(Point wherePwnGoes)
        {
            X = wherePwnGoes.X;
            Y = wherePwnGoes.Y;
            Model.Location = wherePwnGoes;
            IsSelected = false;
        }

        public void DeletePawn()
        {
            Model.Location = new Point(1, 1);
            Model.Visible = false;
            Model.Enabled = false;
        }

        public void Dispose()
        {
            if (this.Model != null)
            {
                GC.SuppressFinalize(this);
            }
        }

      
    }
}
